package cn.wolfcode.p2p.business.domain;

import cn.wolfcode.p2p.base.domain.BaseDomain;
import cn.wolfcode.p2p.util.Constants;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
@Setter@Getter
public class SystemAccountFlow extends BaseDomain {
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date actionDate;//交易时间

    private Integer actionType;//交易类型

    private BigDecimal amount;//交易金额

    private String note;//交易备注

    private BigDecimal usableAmount= Constants.ZERO;//可用余额

    private BigDecimal freezedAmount= Constants.ZERO;//冻结金额

}